import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './routers/index.js'
import ElementPlus from 'element-plus'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import Vant from 'vant'
import 'vant/lib/index.css'
import 'amfe-flexible'
import { createPinia } from 'pinia'

const app=createApp(App)
app.use(router).use(Vant).use(ElementPlus).use(createPinia()).mount('#app')

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }
